<?php $this->headScript()->appendFile($this->JS_PATH . 'company.js'); ?>

<div id="company-listing"></div>
<div class="container-fluid">
    <div id="pad-wrapper" class="form-page">
        <div class="row-fluid form-wrapper">
            <div class="span column">

                <?php if ($this->successmessage != ''): ?>
                    <div class="alert alert-success">
                        <i class="icon-ok-sign"></i> <?php echo $this->successmessage; ?>
                    </div>
                <?php endif; ?>

                <?php if (count($this->errorMessageArray) > 0): ?>
                    <div class="alert alert-error">
                        <?php foreach ($this->errorMessageArray as $erroValue): ?>

                            <div class="text-left">
                                <i class="icon-remove-sign"></i>
                                <?php echo $erroValue; ?>
                            </div>

                        <?php endforeach; ?>
                    </div>
                <?php endif; ?>
                <h3><?php echo $this->mode;?> <?php echo $this->translate("company_header"); ?></h3>
                <br />
                <form role="form"  id="company-form" name="company-form"  enctype="multipart/form-data"  action="" method="post">
                    <div class="field-box">

                        <label><?php echo $this->translate("company_frm_name"); ?><span class="error-star">*</span>:</label>

                        <?php echo $this->form->com_name; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_img"); ?><span class="error-star">*</span>:</label>
                        <?php
                        if ($this->imageName != ""):
                            if (file_exists($this->UPLOAD_PATH . "company/" . $this->imageName)):
                                $src_path = $this->PUBLIC_PATH . "upload/company/" . $this->imageName;
                                ?>
                                <img src="<?php echo $src_path; ?>" height="200" width="200"/>&nbsp; <br>
                            <?php endif;
                        endif; ?>

                        <input type="file" name="com_image" id="com_image"> 
                    </div>
                    <div style="clear: both"></div>
                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_phone"); ?><span class="error-star">*</span>:</label>
<?php echo $this->form->com_phone; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_fax"); ?>:</label>
<?php echo $this->form->com_fax; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_address"); ?><span class="error-star">*</span>:</label>
<?php echo $this->form->com_address; ?>
                    </div>
                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_city"); ?><span class="error-star">*</span>:</label>
<?php echo $this->form->com_city; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_state"); ?><span class="error-star">*</span>:</label>
<?php echo $this->form->com_state; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_country"); ?><span class="error-star">*</span>:</label>

<?php echo $this->form->com_country; ?>

                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_zip"); ?>:</label>
<?php echo $this->form->com_zipcode; ?>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_type"); ?><span class="error-star">*</span>:</label>
                        <div class="ui-select">
<?php echo $this->form->com_type; ?>

                        </div>
                    </div>

                    <div class="field-box">
                        <label><?php echo $this->translate("company_frm_status"); ?><span class="error-star">*</span>:</label>
                        <div class="ui-select">
<?php echo $this->form->com_status; ?>
                        </div> 
                    </div>

                    <br>

                    <div class="field-box">
                        <?php echo $this->form->Save; ?>
<?php echo $this->form->Reset; ?> 
                    </div>



                </form>
            </div>
        </div>
    </div>
</div>